import javax.swing.*;

public class BallJFrame extends JFrame {
 BallJPanel panel;
 public BallJFrame(){
     panel=new BallJPanel();
     this.add(panel);
     this.setResizable(false);

 }
 public void showJF(){
     this.setBounds(200,100,800,4000);
   this.setVisible(true);
   this.setTitle("Game");
   this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   panel.startRun();
 }

 
}
